// vite.config.ts
import { defineApplicationConfig } from "file:///D:/work/ziems-web-zxy/internal/vite-config/dist/index.mjs";
var vite_config_default = defineApplicationConfig({
  overrides: {
    // base: '/html/zioms/ziems',
    css: {
      preprocessorOptions: {
        scss: {
          api: "modern-compiler"
        }
      }
    },
    optimizeDeps: {
      include: [
        "echarts/core",
        "echarts/charts",
        "echarts/components",
        "echarts/renderers",
        "qrcode",
        "@iconify/iconify",
        "ant-design-vue/es/locale/zh_CN",
        "ant-design-vue/es/locale/en_US"
      ]
    },
    server: {
      proxy: {
        "/upload": {
          target: "http://localhost:3300/upload",
          changeOrigin: true,
          ws: true,
          rewrite: (path) => path.replace(new RegExp(`^/upload`), "")
        },
        // 内网访问
        // '/api': {
        //   target: 'http://10.251.181.47',
        //   changeOrigin: true,
        //   ws: true,
        //   rewrite: (path) => path.replace(new RegExp(`^/api`), '/ziems/api/'),
        // },
        //  外网访问
        "/ziems-b20/api": {
          target: "https://zifoms.boeplat.com",
          changeOrigin: true,
          ws: true,
          rewrite: (path) => path.replace(new RegExp(`^/ziems-b20/api`), "/ziems-b20/api")
        },
        //  内网访问
        "/ziems/api": {
          target: "http://192.168.102.80",
          changeOrigin: true,
          ws: true,
          rewrite: (path) => path.replace(new RegExp(`^/ziems/api`), "/ziems/api")
        },
        //  内网访问
        "/api": {
          target: "http://server.ayaojies.com.cn:801",
          changeOrigin: true,
          ws: true,
          rewrite: (path) => path.replace(new RegExp(`^/api`), "/api")
        },
        "/mock": {
          // target: 'http://172.20.10.11:18899', //伟峰
          // target: 'http://172.20.10.11:18899',//信一
          // target: 'http://192.168.0.111:18899', //刘杰
          target: "http://server.ayaojies.com.cn:18899",
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/api`), '/ziems/gateway/api/'),
          rewrite: (path) => path.replace(new RegExp(`^/mock`), "/api")
        }
      },
      port: 18899,
      warmup: {
        clientFiles: ["./index.html", "./src/{views,components}/*"]
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFx3b3JrXFxcXHppZW1zLXdlYi16eHlcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXHdvcmtcXFxcemllbXMtd2ViLXp4eVxcXFx2aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRDovd29yay96aWVtcy13ZWItenh5L3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHtkZWZpbmVBcHBsaWNhdGlvbkNvbmZpZ30gZnJvbSAnQHZiZW4vdml0ZS1jb25maWcnXG5cbmV4cG9ydCBkZWZhdWx0IGRlZmluZUFwcGxpY2F0aW9uQ29uZmlnKHtcbiAgb3ZlcnJpZGVzOiB7XG4gICAgLy8gYmFzZTogJy9odG1sL3ppb21zL3ppZW1zJyxcbiAgICBjc3M6IHtcbiAgICAgIHByZXByb2Nlc3Nvck9wdGlvbnM6IHtcbiAgICAgICAgc2Nzczoge1xuICAgICAgICAgIGFwaTogJ21vZGVybi1jb21waWxlcicsXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgIH0sXG4gICAgb3B0aW1pemVEZXBzOiB7XG4gICAgICBpbmNsdWRlOiBbXG4gICAgICAgICdlY2hhcnRzL2NvcmUnLFxuICAgICAgICAnZWNoYXJ0cy9jaGFydHMnLFxuICAgICAgICAnZWNoYXJ0cy9jb21wb25lbnRzJyxcbiAgICAgICAgJ2VjaGFydHMvcmVuZGVyZXJzJyxcbiAgICAgICAgJ3FyY29kZScsXG4gICAgICAgICdAaWNvbmlmeS9pY29uaWZ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